namespace NHCodeFirst
{
    using System;
    using System.Collections.Generic;
    using HbmModel;

    internal class NHibernateConfiguration
    {
        public static List<string> Mappings;
        public static readonly Dictionary<Type, HibernateMapping> MappingModels = new Dictionary<Type, HibernateMapping>();

        internal static void AddToMapModels(Type entityType)
        {
            var hibernateMapping = new HibernateMapping();
            hibernateMapping.Assembly = entityType.Assembly.GetName().Name;
            hibernateMapping.Namespace = entityType.Namespace;
            hibernateMapping.Class = new Class
                                         {
                                             Name = entityType.Name,
                                             Abstract = entityType.IsAbstract.ToString().ToLower(),
                                             Table = entityType.Name,
                                             Schema = "dbo"
                                         };
            MappingModels.Add(entityType, hibernateMapping);
        }
    }
}